public class PC{
	CPU cpu;
	HardDisk HD;
	public void setCPU(CPU c){
		cpu=c;
	
}
	public void setHardDisk(HardDisk h){
		HD=h;
}
	public void show(){
		System.out.println("CPU的速度是"+cpu.getSpeed()+"硬盘的容量是"+HD.getAmount());
}
}
